package com.trustasia.model;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;


public class UserModel {
	private Integer uid;
	@NotNull
	@Length(min=6,max=16,message="{user.name.length}")
	private String name;
	@NotNull
	@Length(min=6,max=16,message="{user.pass.length}")
	private String password;
	private String phone;
	private String email;
	private String domain;
	
	
	
	
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public UserModel(){
		super();
	}
	
	public UserModel(String name, String password){
		this.name = name;
		this.password = password;
	}
	
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	
}
